<template>
	<div class="reg col-sm-12" :style="{height: heightData}">
		<div class="col-sm-4 signform col-sm-push-4">	
			<div class="sign_limit_width">				
				<img src="../assets/img/logo.png" alt="" class="sign_logo cursor" @click="goHome()"/>
		    	<h2>注册</h2>
		    	<p class="someInfo">欢迎加入AtomPai</p>
				<sign :message="upMsg"></sign>
	    		<!--<button class="btn_sign btn" @click="regist()"></button>--> 
	    		<p class="quick_entrance">   			
	    			<span class="account">已有账号,</span>
	    			<router-link :to="{name:'login'}" class="link_to">立即登录</router-link>
	    		</p>
				<p class="footer_company">© 2016-2018 北京晶派科技有限公司</p>
			</div>
		</div>
    </div>
</template>

<script>
	import {urlRegist} from '../api/api';
	import sign from '@/components/sign'
	export default {
		name: 'register',	
		data() {
            return {
                upMsg:'立即注册',  //在data中定义需要传入的值
                heightData:''
            }
        },
        mounted(){
	    	this.heightData=`${document.documentElement.clientHeight}px`;
	    },
		components:{
			sign
		},
		methods:{
			goHome(){
				this.$router.replace('/');
			}
		}
	}
</script>



